-- GENERATED SPELL FOR [Amani'shi Tempest] --


function spell0_24549(pUnit, Event) --@Thunderclap,n/a--
pUnit:FullCastSpellOnTarget(44033,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24549', 590, 1)
end

function Sorts_24549(pUnit, Event)
local choix_sorts_24549 = math.random(0, 0)
if choix_sorts_24549 == 0 then
pUnit:RegisterEvent('spell0_24549', 1, 1)
end
end

function mob24549_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24549', math.random(1500, 3000), 1)
end

function mob24549_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24549_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24549_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24549, 1, 'mob24549_Action')
RegisterUnitEvent(24549, 2, 'mob24549_Leave')
RegisterUnitEvent(24549, 3, 'mob24549_Kill')
RegisterUnitEvent(24549, 4, 'mob24549_Die')
